<template>
  <div>
    <router-view></router-view>
    <div class="footer">
      <router-link to="./home" class="a" active-class="active">
        <i class="iconfont">&#xe608;</i><span>首页</span>
      </router-link>
      <router-link to="/sort" active-class="active">
        <i class="iconfont">&#xe604;</i><span>分类</span>
      </router-link>
      <router-link to="/shop" active-class="active">
        <i class="iconfont">&#xe605;</i><span>购物车</span>
      </router-link>
      <router-link to="/mine" active-class="active">
        <i class="iconfont">&#xe602;</i><span>我的</span>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.footer {
  width: 100vw;
  /* height: 1.67rem; */
  height: 1rem;
  border-top: 1px solid #ccc;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 3;
}
.footer a{
  width: 1.85rem;
  text-align: center;
  padding: 0.14rem 0 0.14rem 0;
  /* display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box; */
}
.footer i{
  display: block;
  font-size: 0.4rem;
  line-height: 0.4rem;
  margin-bottom: 0.14rem;
}
.footer .iconfont{
  color: #ccc;
}
.footer span{
  font-size: 0.18rem;
  line-height: 0.18rem;
}
.active {
  background-color: #ff6040;
  color: white;
}
.active .iconfont{
  color: #fff;
}
</style>